using System;
using System.Collections.Generic;
using System.Text;
using XinBang.Entity;
using XinBang.DAL;

namespace XinBang.BLL
{
    public class SaleStrategyBL
    {
        private ISaleStrategyDA<SaleStrategy> ssd = BusinessLogicFactory.GetSaleStrategyDA();

        public void DeleteStrategy(SaleStrategy ss)
        {
            ssd.Delete(ss);
        }
        public void InsertStrategy(SaleStrategy ss)
        {
            ssd.Insert(ss);
        }
        public IList<SaleStrategy> GetAllStrategys()
        {
            return ssd.GetAllStrategys();
        }
        public void UpdateStrategy(SaleStrategy ss)
        {
            ssd.Update(ss);
        }

        public SaleStrategy GetSaleStrategyById(int p)
        {
            return ssd.Get(p);
        }
    }
}
